<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<h3>登录</h3>
<div>
  <p th:text="${msg}"></p>
  <form action="/login" method="post">
    <p>用户名：<input type="text" name="username" required></p>
    <p>密码：<input type="password" name="password" required></p>
    <p><input type="submit" value="登录"></p>
  </form>
</div>

</body>
</html>